#!/usr/bin/env python3
# 
# Cross Platform and Multi Architecture Advanced Binary Emulation Framework
# Built on top of Unicorn emulator (www.unicorn-engine.org) 
CPU_ARCH_ABI64      =   0x01000000
CPU_TYPE_X86        =   7
CPU_TYPE_I386       =   CPU_TYPE_X86
CPU_TYPE_X86_64     =   CPU_ARCH_ABI64 | CPU_TYPE_X86

MACH_MSG_SUCCESS                =   0x00000000
MACH_MSG_MASK			        =   0x00003e00
MACH_MSG_IPC_SPACE		        =   0x00002000
MACH_MSG_VM_SPACE		        =   0x00001000
MACH_MSG_IPC_KERNEL		        =   0x00000800
MACH_MSG_VM_KERNEL		        =   0x00000400
MACH_SEND_IN_PROGRESS		    =   0x10000001
MACH_SEND_INVALID_DATA		    =   0x10000002
MACH_SEND_INVALID_DEST		    =   0x10000003
MACH_SEND_TIMED_OUT		        =   0x10000004
MACH_SEND_INVALID_VOUCHER	    =   0x10000005
MACH_SEND_INTERRUPTED		    =   0x10000007
MACH_SEND_MSG_TOO_SMALL		    =   0x10000008
MACH_SEND_INVALID_REPLY		    =   0x10000009
MACH_SEND_INVALID_RIGHT		    =   0x1000000a
MACH_SEND_INVALID_NOTIFY	    =   0x1000000b
MACH_SEND_INVALID_MEMORY	    =   0x1000000c
MACH_SEND_NO_BUFFER		        =   0x1000000d
MACH_SEND_TOO_LARGE		        =   0x1000000e
MACH_SEND_INVALID_TYPE		    =   0x1000000f
MACH_SEND_INVALID_HEADER	    =   0x10000010
MACH_SEND_INVALID_TRAILER	    =   0x10000011
MACH_SEND_INVALID_RT_OOL_SIZE	=   0x10000015
MACH_RCV_IN_PROGRESS		    =   0x10004001
MACH_RCV_INVALID_NAME		    =   0x10004002
MACH_RCV_TIMED_OUT		        =   0x10004003
MACH_RCV_TOO_LARGE		        =   0x10004004
MACH_RCV_INTERRUPTED		    =   0x10004005
MACH_RCV_PORT_CHANGED		    =   0x10004006
MACH_RCV_INVALID_NOTIFY		    =   0x10004007
MACH_RCV_INVALID_DATA		    =   0x10004008
MACH_RCV_PORT_DIED		        =   0x10004009
MACH_RCV_IN_SET			        =   0x1000400a
MACH_RCV_HEADER_ERROR		    =   0x1000400b
MACH_RCV_BODY_ERROR		        =   0x1000400c
MACH_RCV_INVALID_TYPE		    =   0x1000400d
MACH_RCV_SCATTER_SMALL		    =   0x1000400e
MACH_RCV_INVALID_TRAILER	    =   0x1000400f
MACH_RCV_IN_PROGRESS_TIMED      =   0x10004011